<?php
	$app->get('/doc/group/curriculum/info', function() use($app){
		$app->render('info.php', array(
			'name' => '/place/curriculum/info',
			'summary' => '团队课程详情',
			'method' => 'GET',
			'parameter' => array(
				array(
					'name' => 'curriculumid',
					'ismust' => true,
					'type' => 'int',
					'summary' => '团队课程id'
				),
			    array(
			        'name' => 'memberid',
			        'ismust' => true,
			        'type' => 'int',
			        'summary' => '会员id'
			    )
			)
		));
	});
    
    $app->get('/doc/group/curriculum/list', function() use($app){
        $app->render('info.php', array(
            'name' => 'group/curriculum/list',
            'summary' => '团队课程列表',
            'method' => 'GET',
            'parameter' => array(
                array(
                    'name' => 'from',
                    'ismust' => true,
                    'type' => 'int',
                    'summary' => 'from'
                ),
                array(
                    'name' => 'to',
                    'ismust' => true,
                    'type' => 'int',
                    'summary' => 'to'
                ),
                array(
                    'name' => 'gymid',
                    'ismust' => true,
                    'type' => 'int',
                    'summary' => '健身房ID'
                ),
                array(
                    'name' => 'type',
                    'ismust' => false,
                    'type' => 'int',
                    'summary' => '课程类目id'
                ),
                array(
                    'name' => 'order',
                    'ismust' => false,
                    'type' => 'int',
                    'summary' => '排序类型  1(免费在前)  2(收费在前)'
                )
            )
        ));
    });
	
	$app->get('/doc/group/curriculum/mine', function() use($app){
		$app->render('info.php', array(
			'name' => 'group/curriculum/mine',
			'summary' => '我的团队课程',
			'method' => 'GET',
			'parameter' => array(
				array(
					'name' => 'from',
					'ismust' => true,
					'type' => 'int',
					'summary' => 'from'
				),
				array(
					'name' => 'to',
					'ismust' => true,
					'type' => 'int',
					'summary' => 'to'
				),
				array(
					'name' => 'memberid',
					'ismust' => true,
					'type' => 'int',
					'summary' => '用户ID'
				),
			    array(
			        'name' => 'type',
			        'ismust' => true,
			        'type' => 'int',
			        'summary' => '课程状态 1未开始   2进行中  3已结束'
			    )
			)
		));
	});	
?>
